package com.qqtech.qquan.mall.service;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.qqtech.core.frame.dao.BaseDao;
import com.qqtech.core.frame.service.BaseServiceImpl;
import com.qqtech.qquan.mall.cache.MallSysParamCache;
import com.qqtech.qquan.mall.dao.MallSysParamDao;
import com.qqtech.qquan.mall.model.*;

@Service
public class MallSysParamServiceImpl extends BaseServiceImpl<MallSysParam>
		implements MallSysParamService {
	public static final Logger log = LoggerFactory.getLogger(MallSysParamServiceImpl.class);
	
	@Resource
	private MallSysParamDao mallSysParamDao;
	
	@Resource
	private MallSysParamCache mallSysParamCache;

	@Override
	protected BaseDao<MallSysParam> getBaseDao() {
		return mallSysParamDao;
	}
	
	@Override
	public MallSysParam getByKey(java.lang.String key) {
		return mallSysParamDao.getByKey(key);
	}

	@Override
	public void clearAll() {
		mallSysParamCache.clearAll();
	}	
}